const APIV1 = '/api/v1'
const APIV2 = '/api'

const SVR_API = APIV2
const DEV_API = APIV1

const colors = ['#7265e6', '#ffbf00', '#00a2ae', 'rgb(234,109,109)', 'rgb(175,205,205)', 'rgb(91,169,203)', 'rgb(246,162,186)', 'rgb(144,119,215)', 'rgb(144,153,250)', 'rgb(200,220,251)', 'rgb(207,249,248)']

module.exports = {
  name: '微服云平台',
  description: '打造最全面的微信服务商一站式解决方案',
  prefix: 'x-',
  footerText: '微服云平台 © 2019 贵州志恒兴明酒业有限公司',
  baseUrl: 'http://localhost:8080',
  logo: '/public/logo@300.png',
  d_logo: '/public/logo@300.png',
  iconFontCSS: '/public/iconfont.css',
  iconFontJS: '/public/iconfont.js',
  CORS: [],
  openPages: ['/login'],
  apiPrefix: '/api/v1',
  colors: colors,
  randomColor: (i) => {
    return colors[i % colors.length]
  },
  whitelist: ['/login', '/403', '/404', '/500'],
  APIV1,
  APIV2,
  api: {
    importEmp: `${SVR_API}/employees/import`,
    userLogin: `${SVR_API}/users/login`,
    userLogout: `${SVR_API}/users/logout`,
    userInfo: `${SVR_API}/userInfo`,
    employees: `${SVR_API}/employees`,
    goods: `${SVR_API}/goods`,
    roles: `${SVR_API}/roles`,
    operator: `${SVR_API}/operator`,
    customer: `${SVR_API}/customer`,
    chart: `${SVR_API}/charts`,
    dictionaryItems: `${SVR_API}/dictionaryItems`,
    departments: `${SVR_API}/departments`,
    permissions: `${SVR_API}/permissions`,
    exportEmpTemp: `${SVR_API}/employees/exportTemplate`,
    exportEmp: `${SVR_API}/employees/export`,
    posts: `${SVR_API}/posts`,
    user: `${SVR_API}/users`,
    role: `${SVR_API}/roles`,
    department: `${SVR_API}/departments`,
    dashboard: `${SVR_API}/dashboard`,
    menus: `${SVR_API}/menus`,
    weather: `${SVR_API}/weather`,
    mobile: `${SVR_API}/devices`,
    orders: `${DEV_API}/orders`,
    chatroom: `${SVR_API}/chatroom`,
    personalChatRecords: `${SVR_API}/chatRecords`,
    fundRecords: `${SVR_API}/fundRecords`,
    operatorLogs: `${SVR_API}/operatorLog`,
    friendCircle: `${SVR_API}/friendCircle`,
    highQualityChatRecord: `${SVR_API}/highQualityChats`,
    highQualityFriendCircle: `${SVR_API}/highQualityFriendCircles`,
    auditOrder: `${SVR_API}/auditOrders`,
    orderLogs: `${SVR_API}/orderLogs`,
    chatroomMember: `${SVR_API}/chatRoomMembers`,
    duplicateFriend: `${SVR_API}/duplicateFriend`,
    riskControl: `${SVR_API}/riskctrl`,
    performancesOfWxAccount: `${SVR_API}/performancesOfWxAccount`,
    performancesOfEmployee: `${SVR_API}/performancesOfEmployee`,
    performancesOfDepartment: `${SVR_API}/performancesOfDepartment`,
    performancesOfComposite: `${SVR_API}/performancesOfComposite`,
    chatroomChatRecords: `${SVR_API}/chatroomChatRecords`,
    statisticsOfFriendCircle: `${SVR_API}/statisticsOfFriendCircle`,
    statisticsOfDialogue: `${SVR_API}/statisticsOfDialogue`,
    friendStatistics: `${SVR_API}/friendStatistics`,
    address: `${SVR_API}/address`,
    dictionarys: `${SVR_API}/dictionarys`,
    blacklists: `${SVR_API}/blacklists`,
    whitelists: `${SVR_API}/whitelists`,
    sensitiveWords: `${SVR_API}/sensitiveWords`,
    wxControl: `${SVR_API}/wxControl`,
  },
  footer: {
    links: [
      {
        key: 'help',
        title: '帮助',
        href: '#',
      },
      {
        key: 'privacy',
        title: '隐私',
        href: '#',
      },
      {
        key: 'terms',
        title: '未来',
        href: '#',
      },
    ],
    copyright: '2019 银杉科技股份有限公司出品',
  },
}
